package com.bgds.sys.task;

import com.bgds.sys.api.service.BaoXinService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Smiling
 * @description: TODO
 * @date 2021/4/28  21:06
 */
@Component
public class DeviceFaultJob implements Job {
    @Autowired
    private BaoXinService baoXinService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
         baoXinService.getDeviceFaultData();
    }
}